package com.shanzmoo.platform.tomerchant.api.config;

import com.shanzmoo.db.common.inface.UserComponentInface;
import com.shanzmoo.platform.tomerchant.api.util.SecurityUtil;
import org.springframework.stereotype.Component;

/**
 * 用户id获取组件
 * @author fs
 */
@Component
public class UserComponent implements UserComponentInface {
    @Override
    public Integer getUserId() {
        return SecurityUtil.getCurrentUserId();
    }
}
